package fw.rpc.dubbo.seria.hession;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;

@Slf4j
public class PersonChild extends PersonParent implements Serializable {

    // Externalizable
    private static final long serialVersionUID = -842029427676826563L;
    public static String name;
    private int age;
    private transient int workDay = 5;
    private String fClub;

    public PersonChild(int parent, int superage,int age) {
        super(parent, superage);this.age=age;
    }


    @Override
    public String toString() {
        return "PersonSerializble{" +
                "age=" + age +
                ", workDay=" + workDay +
                ", fClub='" + fClub + '\'' +
                ", parent='" + getParent() + '\'' +
                '}';
    }
}